home *** CD-ROM | disk | FTP | other *** search
- ; Install script for AModPlay V1.1
-
- (set #bad-kick "\n\nSorry! You must have Workbench 2.0 or higher to to use AModPlay\n.")
- (set #hello-message "\nWelcome to the AModPlay Installer Script.\n\n\nAModPlay V1.57.\n\nBy Cliff Earl (24.8.1997).\n\n© 1996-1997 Antix Software.\n\n\nFeedback to cee@voyager.co.nz")
- (set #installing "\nInstalling ")
- (set #where-to "\nWhere should I put the ")
- (set #install-which "\nWhich components should be installed?\n")
- (set #exe-dest (cat #where-to "\nmain program file?\n"))
- (set #doc-dest (cat #where-to "Documentation?\n"))
- (set #rexx-dest (cat #where-to "Arexx scripts?\nA new directory WILL be created.\n"))
- (set #exit-message "\nAModPlay Installed!\nEnjoy.")
-
- ; ---------------------------------------------------------------------------
- ; exit if wrong wb version.
-
- (if (< (getversion "LIBS:version.library") (* 37 65536))
- (abort #bad-kick)
- )
-
- ; ---------------------------------------------------------------------------
-
- (message #hello-message)
-
- ; ---------------------------------------------------------------------------
- ; find out which components should be installed
-
- (set InstallOpt
- (askoptions
- (prompt #install-which)
- (help @askoptions-help)
- (choices " AModPlay executable" " Arexx Scripts" " BFBPlay libraries" " Documentation.")
- )
- )
-
- (if (= InstallOpt 0)
- (abort "\n\n\nYou did not select any components\n\n\nInstallation Aborted!!")
- )
-
- (complete 0)
-
- ; ---------------------------------------------------------------------------
- ;Install executable.
-
- (if (BITAND InstallOpt 1)
- ((set destdir
- (askdir
- (prompt #exe-dest)
- (help @askdir-help)
- (default "Sys:WBStartup")
- )
- )
-
- (copyfiles
- (source "AModPlay")
- (dest destdir)
- (infos)
- )
- )
- )
-
- (complete 25)
-
- ; ---------------------------------------------------------------------------
- ;Install rexx scripts.
-
- (if (BITAND InstallOpt 2)
- ((set destdir
- (askdir
- (prompt #rexx-dest)
- (help @askdir-help)
- (default "REXX:")
- )
- )
-
- (foreach "REXX" "#?.amp"
- (
- (set nextscript (tackon "REXX" @each-name))
- (copyfiles
- (source nextscript)
- (dest (tackon destdir "AModPlay"))
- (newname @each-name)
- (prompt (cat #installing @each-name))
- (help @copyfiles-help)
- (infos)
- )
- )
- )
-
- )
- )
-
- (complete 50)
-
- ; ---------------------------------------------------------------------------
- ;Install libraries.
-
- (if (BITAND InstallOpt 4)
- (
- (copylib
- (prompt "\nCopying BFBPlayMaster.library to LIBS:\n")
- (source "LIBS/bfbplaymaster.library")
- (dest "LIBS:")
- (help @copylib-help)
- (confirm)
- )
-
- (foreach "LIBS/replayers" "#?.library"
- (
- (set nextlib (tackon "LIBS/replayers" @each-name))
- (copylib
- (source nextlib)
- (dest "LIBS:replayers")
- (newname @each-name)
- (prompt (cat #installing @each-name))
- (help @copylib-help)
- (confirm)
- )
- )
- )
- )
- )
-
- (complete 75)
-
- ; ---------------------------------------------------------------------------
- ;Install documentation.
-
- (if (BITAND InstallOpt 8)
- ((set destdir
- (askdir
- (prompt #doc-dest)
- (help @askdir-help)
- (default "DOCS:")
- )
- )
- (copyfiles
- (source "Docs/AModPlay.guide")
- (dest destdir)
- (infos)
- )
- )
- )
-
- (complete 100)
-
- ; ---------------------------------------------------------------------------
-
- (exit)
-